<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 5/21/24
 * Time: 10:14 AM
 */

return [

    // 企业自建应用token
    'self_access_token'       => 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s',

    // 自建应用部门成员
    'self_user_list'          => 'https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s',

    // 打卡记录
    'checkin_record'          => 'https://qyapi.weixin.qq.com/cgi-bin/checkin/add_checkin_record?access_token=%s',

    // 获取企业永久授权码
    'permanent_code'          => 'https://qyapi.weixin.qq.com/cgi-bin/service/get_permanent_code?suite_access_token=%s',

    // 获取应用token
    'suite_access_token'      => 'https://qyapi.weixin.qq.com/cgi-bin/service/get_suite_token',

    // 获取代开发token
    'replace_access_token'    => 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s',

    // 上传临时素材
    'upload_media'            => 'https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=%s&type=%s',

    // 上传图片
    'upload_img'              => 'https://qyapi.weixin.qq.com/cgi-bin/media/uploadimg?access_token=%s',

    // 获取客服账号列表
    'account_list'            => 'https://qyapi.weixin.qq.com/cgi-bin/kf/account/list?access_token=%s',

    // 添加客服账号
    'add_account'             => 'https://qyapi.weixin.qq.com/cgi-bin/kf/account/add?access_token=%s',

    // 删除客服账号
    'del_account'             => 'https://qyapi.weixin.qq.com/cgi-bin/kf/account/del?access_token=%s',

    // 获取客服链接
    'kf_link'                 => 'https://qyapi.weixin.qq.com/cgi-bin/kf/add_contact_way?access_token=%s',

    // 获取临时素材
    'get_media'               => 'https://qyapi.weixin.qq.com/cgi-bin/media/get?access_token=%s&media_id=%s',

    // 同步客服消息
    'sync_msg'                => 'https://qyapi.weixin.qq.com/cgi-bin/kf/sync_msg?access_token=%s',

    // 发送事件消息
    'send_event_msg'          => 'https://qyapi.weixin.qq.com/cgi-bin/kf/send_msg_on_event?access_token=%s',

    // 发送消息
    'send_msg'                => 'https://qyapi.weixin.qq.com/cgi-bin/kf/send_msg?access_token=%s',

    // 客户列表
    'customer_list'           => 'https://qyapi.weixin.qq.com/cgi-bin/kf/customer/batchget?access_token=%s',

    // 部门列表
    'dep_list'                => 'https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=%s',

    // 创建部门
    'create_dep'              => 'https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=%s',

    // 删除部门
    'del_dep'                 => 'https://qyapi.weixin.qq.com/cgi-bin/department/delete?access_token=%s&id=%s',

    // 部门成员列表
    'user_list'               => 'https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s',

    // 创建成员
    'create_user'             => 'https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=%s',

    // 删除成员
    'del_user'                => 'https://qyapi.weixin.qq.com/cgi-bin/user/delete?access_token=%s&userid=%s',

    // 用户信息
    'user_info'               => 'https://qyapi.weixin.qq.com/cgi-bin/service/auth/getuserinfo3rd?suite_access_token=%s&code=%s',

    // 接待列表
    'servicer_list'           => 'https://qyapi.weixin.qq.com/cgi-bin/kf/servicer/list?access_token=%s&open_kfid=%s',

    // 添加接待人员
    'add_servicer'            => 'https://qyapi.weixin.qq.com/cgi-bin/kf/servicer/add?access_token=%s',

    // 删除客服接待
    'del_servicer'            => 'https://qyapi.weixin.qq.com/cgi-bin/kf/servicer/del?access_token=%s',


    // 获取服务商token
    'provider_access_token'   => 'https://qyapi.weixin.qq.com/cgi-bin/service/get_provider_token',

    // 获取订单列表
    'order_list'              => 'https://qyapi.weixin.qq.com/cgi-bin/license/list_order?provider_access_token=%s',

    // 获取订单账号列表（激活码）
    'code_list'               => 'https://qyapi.weixin.qq.com/cgi-bin/license/list_order_account?provider_access_token=%s',

    // 激活账号
    'active_account'          => 'https://qyapi.weixin.qq.com/cgi-bin/license/active_account?provider_access_token=%s',

    // 获取客户群列表
    'chat_list'               => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/list?access_token=%s',

    // 获取客户群详情
    'chat_detail'             => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/get?access_token=%s',

    // 打卡记录
    'checkin_record'          => 'https://qyapi.weixin.qq.com/cgi-bin/checkin/add_checkin_record?access_token=%s',


    // 外部联系人数量
    'externalcontact_list'    => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/list?access_token=%s&userid=%s',
    'externalcontact_detail'  => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=%s&external_userid=%s',

    // 外部联系人欢迎语
    'externalcontact_welcome' => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/send_welcome_msg?access_token=%s',

    // 外部联系人备注
    'externalcontact_remark'  => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/remark?access_token=%s',

    // 客户统计
    'customer_data'           => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_user_behavior_data?access_token=%s',

    // 客户群统计
    'chat_data'               => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/statistic?access_token=%s',

    // 客户群发消息
    'add_chat_msg'            => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_msg_template?access_token=%s',

    // 获取客链接列表
    'customer_link_list'      => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/customer_acquisition/list_link?access_token=%s',

    // 获客链接详情
    'customer_link_detail'    => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/customer_acquisition/get?access_token=%s',

    // 创建获客链接
    'customer_link_create'    => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/customer_acquisition/create_link?access_token=%s',

    // 删除获客链接
    'customer_link_delete'    => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/customer_acquisition/delete_link?access_token=%s',

    // 获客链接额度
    'customer_link_quota'     => 'https://qyapi.weixin.qq.com/cgi-bin/externalcontact/customer_acquisition_quota?access_token=%s',


];
